import { FC } from 'react'
import Index from '@/pages/index'
import Market from '@/pages/market'
import MyAssets from '@/pages/myAssets'
import MySale from '@/pages/mySale'
import Task from '@/pages/task'
import Swap from '@/pages/swap'
import WhitePaper from '@/pages/whitepaper'
import Game from '@/pages/game'

export interface RouterType {
    path: string,
    element: any,
}

// 接入路由，静态路由在此注册
const AccessRoutes: RouterType[] = [
    {
        path: '/index',
        element: Index,
    },
    {
        path: '/market',
        element: Market,
    },
    {
        path: '/my-assets',
        element: MyAssets,
    },
    {
        path: '/my-sale',
        element: MySale,
    },
    {
        path: '/task',
        element: Task,
    },
    {
        path: '/swap',
        element: Swap,
    },
    {
        path: '/game',
        element: Game,
    },
    {
        path: '/white-paper',
        element: WhitePaper,
    },
]

// 总路由
export const routes: RouterType[] = ([
    ...AccessRoutes,
])